package com.example.victory.swagger.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

/**
 * 期权交易信息
 */
@ApiModel(description = "期权交易信息")
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-04-26T10:50:39.083+08:00")

public class OptionExchange   {
  @JsonProperty("customerId")
  private String customerId = null;

  @JsonProperty("assetTotal")
  private Double assetTotal = null;

  @JsonProperty("profitLoss")
  private Double profitLoss = null;

  @JsonProperty("capitalMoney")
  private Double capitalMoney = null;

  @JsonProperty("marketValueTotal")
  private Double marketValueTotal = null;

  public OptionExchange customerId(String customerId) {
    this.customerId = customerId;
    return this;
  }

  /**
   * 客户号
   * @return customerId
  **/
  @ApiModelProperty(example = "880001472442", value = "客户号")


  public String getCustomerId() {
    return customerId;
  }

  public void setCustomerId(String customerId) {
    this.customerId = customerId;
  }

  public OptionExchange assetTotal(Double assetTotal) {
    this.assetTotal = assetTotal;
    return this;
  }

  /**
   * 总资产，单位元
   * @return assetTotal
  **/
  @ApiModelProperty(example = "10000.01", value = "总资产，单位元")


  public Double getAssetTotal() {
    return assetTotal;
  }

  public void setAssetTotal(Double assetTotal) {
    this.assetTotal = assetTotal;
  }

  public OptionExchange profitLoss(Double profitLoss) {
    this.profitLoss = profitLoss;
    return this;
  }

  /**
   * 浮动盈亏
   * @return profitLoss
  **/
  @ApiModelProperty(example = "0.05", value = "浮动盈亏")


  public Double getProfitLoss() {
    return profitLoss;
  }

  public void setProfitLoss(Double profitLoss) {
    this.profitLoss = profitLoss;
  }

  public OptionExchange capitalMoney(Double capitalMoney) {
    this.capitalMoney = capitalMoney;
    return this;
  }

  /**
   * 资金余额，单位元
   * @return capitalMoney
  **/
  @ApiModelProperty(example = "1.05", value = "资金余额，单位元")


  public Double getCapitalMoney() {
    return capitalMoney;
  }

  public void setCapitalMoney(Double capitalMoney) {
    this.capitalMoney = capitalMoney;
  }

  public OptionExchange marketValueTotal(Double marketValueTotal) {
    this.marketValueTotal = marketValueTotal;
    return this;
  }

  /**
   * 流通市值，单位元
   * @return marketValueTotal
  **/
  @ApiModelProperty(example = "1.05", value = "流通市值，单位元")


  public Double getMarketValueTotal() {
    return marketValueTotal;
  }

  public void setMarketValueTotal(Double marketValueTotal) {
    this.marketValueTotal = marketValueTotal;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    OptionExchange optionExchange = (OptionExchange) o;
    return Objects.equals(this.customerId, optionExchange.customerId) &&
        Objects.equals(this.assetTotal, optionExchange.assetTotal) &&
        Objects.equals(this.profitLoss, optionExchange.profitLoss) &&
        Objects.equals(this.capitalMoney, optionExchange.capitalMoney) &&
        Objects.equals(this.marketValueTotal, optionExchange.marketValueTotal);
  }

  @Override
  public int hashCode() {
    return Objects.hash(customerId, assetTotal, profitLoss, capitalMoney, marketValueTotal);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class OptionExchange {\n");
    
    sb.append("    customerId: ").append(toIndentedString(customerId)).append("\n");
    sb.append("    assetTotal: ").append(toIndentedString(assetTotal)).append("\n");
    sb.append("    profitLoss: ").append(toIndentedString(profitLoss)).append("\n");
    sb.append("    capitalMoney: ").append(toIndentedString(capitalMoney)).append("\n");
    sb.append("    marketValueTotal: ").append(toIndentedString(marketValueTotal)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

